package com.bawei.lib_storage.room

import androidx.room.Database
import androidx.room.RoomDatabase
import com.bawei.lib_storage.room.dao.FavoriteDao
import com.bawei.lib_storage.room.dao.HistoryDao
import com.bawei.lib_storage.room.dao.TakeVideoDao
import com.bawei.lib_storage.room.entity.FavoriteEntity
import com.bawei.lib_storage.room.entity.HistoryEntity
import com.bawei.lib_storage.room.entity.TakeVideoEntity

@Database(entities = [HistoryEntity::class, TakeVideoEntity::class, FavoriteEntity::class], version = 7, exportSchema = false)
abstract class AppDataBase: RoomDatabase() {
    abstract fun historyDao(): HistoryDao
    abstract fun takeVideoDao(): TakeVideoDao
    abstract fun favoriteDao(): FavoriteDao
}